package cn.mall.server.openfeign;

import cn.mall.common.utils.R;
import cn.mall.member.VO.RegistVO;
import cn.mall.common.vo.MemberEntity;
import cn.mall.server.VO.UserLoginVo;
import cn.mall.server.config.DefaultFeignConfiguration;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

@FeignClient(value = "mall-member", configuration = DefaultFeignConfiguration.class)
public interface MemberFeignController {
    @RequestMapping("member/member/save")
    R save(@RequestBody MemberEntity member);
    @PostMapping("member/member/login")
    R login(@RequestBody UserLoginVo loginVo);
    @PostMapping("member/member/reg/select")
    R registAndSelect(@RequestBody RegistVO registVO);
    @RequestMapping("member/menber/info/{id}")
    R info(@PathVariable("id") Long id);
}
